﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LeRenard.Libraries.Drawing.GdiPlus.Forms
{
    /// <summary>
    /// Backbuffer to draw frames on.    
    /// </summary>
    public interface ITarget : IDisposable
    {
        /// <summary>
        /// Gets the <see cref="Graphics"/> GDI surface to draw on.
        /// </summary>
        Graphics Graphics { get; }

        /// <summary>
        /// Reallocates the target.
        /// </summary>
        /// <param name="graphics">The new <see cref="Graphics"/> target.</param>
        void ReAllocate(Graphics graphics);
    }
}
